Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speak emotion with highest confidence (instead of first one in result) #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gabehollombe-aws
Copy link

I noticed that when picking which detected emotion to voice, the original code just uses the first one in the Rekognition response list. However, this response from Rekognition is not necessarily ordered, so it often results in a sub-optimal voicing.

This change sorts the emotions and then picks the highest confidence emotion to voice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants